import Request from "./request";

//溯源统计
export function getXYYCodeByJhId() {
  return Request({
    url: "jyhsprk/getXYYCodeByJhId",
    method: "post",
    data: {
      id: localStorage.getItem("id"),
      // id: 732449,
    },
  });
}
//购买登记
export function addByXieYouYuan(data) {
  return Request({
    url: "gmdjgl/addByXieYouYuan",
    method: "post",
    data,
  });
}

//咨询投诉
export function getComplaints(data) {
  return Request({
    url: "zxtsgl/addByXieYouYuan",
    method: "post",
    data,
  });
}

//获取合格证
export function getHGZ() {
  return Request({
    url:
      "ncphgz/infohgz/" + JSON.parse(localStorage.getItem("formData")).jhcsId,
    method: "get",
  });
}

//获取农药信息
export function queryPromotions() {
  return Request({
    url: "/dictdata/getDataListById?dictId=72",
    method: "get",
  });
}


//获取农药信息1
export function queryPromotion1() {
  return Request({
    url: "/dictdata/getDataListById?dictId=73",
    method: "get",
  });
}